﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EmailCenter_SEK53.Models.Objects;

namespace EmailCenter_SEK53.Models
{
    public interface IRepository
    {
        // Method get email list by type: 1 - inbox, 2- Sent Mail, 3- Draft
        IList<Email> GetEmailList(int type, int accountId);
        // Method insert new email
        void InsertNewEmail(int type, string partnerEmail, string partnerName, string subject, string datetime, string contents, int accountId);
        // Method update an email by email ID
        void UpdateEmail(int emailId, int type, string partnerEmail, string partnerName, string subject, string datetime, string contents, int accountId);
        // Method delete an email by email ID
        void DeleteEmail(int emailId);
        // Method check acount is already exist
        bool isAlreadyExistAccount(string email);
        int isAccountExist(string email);
        // Method insert new account
        int InsertNewAccount(string email, string userName, string password);
        // Method get suggest email
        IList<SuggestEmailItem> GetSuggestEmail();
    }
}
